/**
 * @className Goods
 * @author liuxuelin
 * @Date 2021/1/16
 * @version v1.0
 */

package com.hidt.shop.domain;
//商品信息表实体类
public class Goods {
    private int good_id;//商品ID
    private String good_name;//商品名称
    private int class_id;//商品所属的大分类，指向goods_class中的id
    private int category_id;//商品所属的小分类，指向category中的CATEGORY_ID
    private String good_picture;//商品的图片：如果数据库中存图片的地址，数据类型为varchar2(50)。如果数据库中存的是图片，则用BLOB
    private float goodsale_price;//商品的出售价格，库里存的是数字，页面上显示为￥数字。其中￥表示人民币的符号。
    private int goods_discount;//商品折扣100-0,100为原价，0为免费(默认值：100)
//    fhy
    private int seckil_discount; // 商品添加得到秒杀时的折扣

    private int remaining_count;//商品的剩余数量，该值必须大于或等于0
    private int goodis_upload;//上下架(默认值：1)
    private int goodis_delete;//数据是否：1为删除，0是不删除(默认值：0)

    public Goods() {}

    public Goods(int good_id, String good_name, int class_id, int category_id, String good_picture,
                 float goodsale_price, int goods_discount, int seckil_discount, int remaining_count,
                 int goodis_upload, int goodis_delete) {
        this.good_id = good_id;
        this.good_name = good_name;
        this.class_id = class_id;
        this.category_id = category_id;
        this.good_picture = good_picture;
        this.goodsale_price = goodsale_price;
        this.goods_discount = goods_discount;
        this.seckil_discount = seckil_discount;
        this.remaining_count = remaining_count;
        this.goodis_upload = goodis_upload;
        this.goodis_delete = goodis_delete;
    }

    public int getGood_id() {
        return good_id;
    }

    public void setGood_id(int good_id) {
        this.good_id = good_id;
    }

    public String getGood_name() {
        return good_name;
    }

    public void setGood_name(String good_name) {
        this.good_name = good_name;
    }

    public int getClass_id() {
        return class_id;
    }

    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    public int getCategory_id() {
        return category_id;
    }

    public void setCategory_id(int category_id) {
        this.category_id = category_id;
    }

    public String getGood_picture() {
        return good_picture;
    }

    public void setGood_picture(String good_picture) {
        this.good_picture = good_picture;
    }

    public float getGoodsale_price() {
        return goodsale_price;
    }

    public void setGoodsale_price(float goodsale_price) {
        this.goodsale_price = goodsale_price;
    }

    public int getGoods_discount() {
        return goods_discount;
    }

    public void setGoods_discount(int goods_discount) {
        this.goods_discount = goods_discount;
    }

    public int getSeckil_discount() {
        return seckil_discount;
    }

    public void setSeckil_discount(int seckil_discount) {
        this.seckil_discount = seckil_discount;
    }

    public int getRemaining_count() {
        return remaining_count;
    }

    public void setRemaining_count(int remaining_count) {
        this.remaining_count = remaining_count;
    }

    public int getGoodis_upload() {
        return goodis_upload;
    }

    public void setGoodis_upload(int goodis_upload) {
        this.goodis_upload = goodis_upload;
    }

    public int getGoodis_delete() {
        return goodis_delete;
    }

    public void setGoodis_delete(int goodis_delete) {
        this.goodis_delete = goodis_delete;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "good_id=" + good_id +
                ", good_name='" + good_name + '\'' +
                ", class_id=" + class_id +
                ", category_id=" + category_id +
                ", good_picture='" + good_picture + '\'' +
                ", goodsale_price=" + goodsale_price +
                ", goods_discount=" + goods_discount +
                ", seckil_discount=" + seckil_discount +
                ", remaining_count=" + remaining_count +
                ", goodis_upload=" + goodis_upload +
                ", goodis_delete=" + goodis_delete +
                '}';
    }
}
